export const createGetParam = (href: string = window?.location?.search) => {
  const urlParams = new URLSearchParams(href)
  return (key: string): string | null => {
    return urlParams.get(key)
  }
}
